<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>MCUXpresso SDK API Reference Manual: GPT: General Purpose Timer</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="fs_logo.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">MCUXpresso SDK API Reference Manual
   &#160;<span id="projectnumber">Rev. 0</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__gpt.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">GPT: General Purpose Timer</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<p>The MCUXpresso SDK provides a driver for the General Purpose Timer (GPT) of MCUXpresso SDK devices.</p>
<h1><a class="anchor" id="GPTFunc"></a>
Function groups</h1>
<p>The gpt driver supports the generation of PWM signals, input capture and setting up the timer match conditions.</p>
<h2><a class="anchor" id="GPTInit"></a>
Initialization and deinitialization</h2>
<p>The function <a class="el" href="group__gpt.html#ga6aeb20e99444bdaf31dd9c39c108e79f" title="Initialize GPT to reset state and initialize running mode. ">GPT_Init()</a> initializes the gpt with specified configurations. The function <a class="el" href="group__gpt.html#ga0f60fd16354f3fcf7bd02f1ccbee80e4" title="Fills in the GPT configuration structure with default settings. ">GPT_GetDefaultConfig()</a> gets the default configurations. The initialization function configures the restart/free-run mode and input selection when running.</p>
<p>The function <a class="el" href="group__gpt.html#ga90be090ee63035f2a2b014adcfd8c60b" title="Disables the module and gates the GPT clock. ">GPT_Deinit()</a> stops the timer and turns off the module clock.</p>
<h1><a class="anchor" id="GptCase"></a>
Typical use case</h1>
<h2><a class="anchor" id="GPTInterruptExample"></a>
GPT interrupt example</h2>
<p>Set up a channel to trigger a periodic interrupt after every 1 second. </p>
<div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">void</span>)</div>
<div class="line">{</div>
<div class="line">    uint32_t gptFreq;</div>
<div class="line">    <a class="code" href="group__gpt.html#structgpt__config__t">gpt_config_t</a> gptConfig;</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Board pin, clock, debug console init */</span></div>
<div class="line">    BOARD_InitHardware();</div>
<div class="line"></div>
<div class="line">    <a class="code" href="group__gpt.html#ga0f60fd16354f3fcf7bd02f1ccbee80e4">GPT_GetDefaultConfig</a>(&amp;gptConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Initialize GPT module */</span></div>
<div class="line">    <a class="code" href="group__gpt.html#ga6aeb20e99444bdaf31dd9c39c108e79f">GPT_Init</a>(EXAMPLE_GPT, &amp;gptConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Divide GPT clock source frequency by 3 inside GPT module */</span></div>
<div class="line">    <a class="code" href="group__gpt.html#ga941a31e66563ec733dc4c69ab430af3f">GPT_SetClockDivider</a>(EXAMPLE_GPT, 3);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Get GPT clock frequency */</span></div>
<div class="line">    gptFreq = EXAMPLE_GPT_CLK_FREQ;</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* GPT frequency is divided by 3 inside module */</span></div>
<div class="line">    gptFreq /= 3;</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Set both GPT modules to 1 second duration */</span></div>
<div class="line">    <a class="code" href="group__gpt.html#gab4482de4377738cf0ee065f6ad7d3547">GPT_SetOutputCompareValue</a>(EXAMPLE_GPT, <a class="code" href="group__gpt.html#ggae6c9b96e71d6a276ce8437708acddfdaa68b52504e269393df3fc389c9b78c2d8">kGPT_OutputCompare_Channel1</a>, gptFreq);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable GPT Output Compare1 interrupt */</span></div>
<div class="line">    <a class="code" href="group__gpt.html#gaf441b1f196d31f08319db26487bbe496">GPT_EnableInterrupts</a>(EXAMPLE_GPT, <a class="code" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba61170acbca36f4757633d1d12d3246ba">kGPT_OutputCompare1InterruptEnable</a>);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable at the Interrupt */</span></div>
<div class="line">    EnableIRQ(GPT_IRQ_ID);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Start Timer */</span></div>
<div class="line">    PRINTF(<span class="stringliteral">&quot;\r\nStarting GPT timer ...&quot;</span>);</div>
<div class="line">    <a class="code" href="group__gpt.html#gafd643e0c52bdf9cb0ea78819cd5d1ca9">GPT_StartTimer</a>(EXAMPLE_GPT);</div>
<div class="line"></div>
<div class="line">    <span class="keywordflow">while</span> (<span class="keyword">true</span>)</div>
<div class="line">    {</div>
<div class="line">        <span class="comment">/* Check whether occur interupt and toggle LED */</span></div>
<div class="line">        <span class="keywordflow">if</span> (<span class="keyword">true</span> == gptIsrFlag)</div>
<div class="line">        {</div>
<div class="line">            PRINTF(<span class="stringliteral">&quot;\r\n GPT interrupt is occured !&quot;</span>);</div>
<div class="line">            gptIsrFlag = <span class="keyword">false</span>;</div>
<div class="line">        }</div>
<div class="line">        <span class="keywordflow">else</span></div>
<div class="line">        {</div>
<div class="line">            __WFI();</div>
<div class="line">        }</div>
<div class="line">    }</div>
<div class="line">}</div>
</div><!-- fragment --> <table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structgpt__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#structgpt__config__t">gpt_config_t</a></td></tr>
<tr class="memdesc:structgpt__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Structure to configure the running mode.  <a href="group__gpt.html#structgpt__config__t">More...</a><br/></td></tr>
<tr class="separator:structgpt__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gad0ed5e094d0bec112a065a0c6b057e56"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56a398f5e7765f47a492d625a7cb26bf499">kGPT_ClockSource_Off</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56a728cff5c785288f3884d4c2cbdf0b466">kGPT_ClockSource_Periph</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56a1a2644f7461698f6515c3da0a7c1cbab">kGPT_ClockSource_HighFreq</a> = 2U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56ab76385e941d5ce14116ac5a55aaf5815">kGPT_ClockSource_Ext</a> = 3U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56acb33521779fb2addb21bb22f850c837d">kGPT_ClockSource_LowFreq</a> = 4U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56a9df479d2e5f5d539b053425ab986ad20">kGPT_ClockSource_Osc</a> = 5U
<br/>
 }</td></tr>
<tr class="memdesc:gad0ed5e094d0bec112a065a0c6b057e56"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of clock sources.  <a href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">More...</a><br/></td></tr>
<tr class="separator:gad0ed5e094d0bec112a065a0c6b057e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad36eff6489251bee506c6806c64a86d0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad36eff6489251bee506c6806c64a86d0a083b8ef10ac54db99013fdadaf40ea12">kGPT_InputCapture_Channel1</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggad36eff6489251bee506c6806c64a86d0a8ef1e1b7eee2eefaef9d4f9776bafe4a">kGPT_InputCapture_Channel2</a> = 1U
<br/>
 }</td></tr>
<tr class="memdesc:gad36eff6489251bee506c6806c64a86d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of input capture channel number.  <a href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">More...</a><br/></td></tr>
<tr class="separator:gad36eff6489251bee506c6806c64a86d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga22997c2d644f6249b9c704afc230eedf"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga22997c2d644f6249b9c704afc230eedfaf7ecc55be6dd63a6be40d96dc9f8d24e">kGPT_InputOperation_Disabled</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga22997c2d644f6249b9c704afc230eedfa17ede75d0bb581f4fed42f678e1b81d1">kGPT_InputOperation_RiseEdge</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga22997c2d644f6249b9c704afc230eedfaa0dcd1649563ba92f8f1e8230284edfa">kGPT_InputOperation_FallEdge</a> = 2U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga22997c2d644f6249b9c704afc230eedfa5ad14d26a16fa7d607a446440c88b735">kGPT_InputOperation_BothEdge</a> = 3U
<br/>
 }</td></tr>
<tr class="memdesc:ga22997c2d644f6249b9c704afc230eedf"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of input capture operation mode.  <a href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">More...</a><br/></td></tr>
<tr class="separator:ga22997c2d644f6249b9c704afc230eedf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6c9b96e71d6a276ce8437708acddfda"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggae6c9b96e71d6a276ce8437708acddfdaa68b52504e269393df3fc389c9b78c2d8">kGPT_OutputCompare_Channel1</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggae6c9b96e71d6a276ce8437708acddfdaa1be13c4fe09bed476ee7656b59f25d37">kGPT_OutputCompare_Channel2</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggae6c9b96e71d6a276ce8437708acddfdaa55da6b048e4471add16448bd43a6829c">kGPT_OutputCompare_Channel3</a> = 2U
<br/>
 }</td></tr>
<tr class="memdesc:gae6c9b96e71d6a276ce8437708acddfda"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of output compare channel number.  <a href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">More...</a><br/></td></tr>
<tr class="separator:gae6c9b96e71d6a276ce8437708acddfda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54e26b65b23236492c81c572ba36ab20"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga54e26b65b23236492c81c572ba36ab20adedc5e02092eeab85600f919bf2dec82">kGPT_OutputOperation_Disconnected</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga54e26b65b23236492c81c572ba36ab20acd8732f3636757f56665c6549a27c887">kGPT_OutputOperation_Toggle</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga54e26b65b23236492c81c572ba36ab20ab74f183a3e8eb815a40a39eb033dc532">kGPT_OutputOperation_Clear</a> = 2U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga54e26b65b23236492c81c572ba36ab20aae9329b2a4b5ea63e66ca10239efe669">kGPT_OutputOperation_Set</a> = 3U, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga54e26b65b23236492c81c572ba36ab20a5bd080fd627f26d074da1b3dab7535f2">kGPT_OutputOperation_Activelow</a> = 4U
<br/>
 }</td></tr>
<tr class="memdesc:ga54e26b65b23236492c81c572ba36ab20"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of output compare operation mode.  <a href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">More...</a><br/></td></tr>
<tr class="separator:ga54e26b65b23236492c81c572ba36ab20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac1d66bcf23acefc1a50049c7e24d77bb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb">gpt_interrupt_enable_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba61170acbca36f4757633d1d12d3246ba">kGPT_OutputCompare1InterruptEnable</a> = GPT_IR_OF1IE_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba4ebb7fc65d182cd6643fe237d60d91ed">kGPT_OutputCompare2InterruptEnable</a> = GPT_IR_OF2IE_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba5141f4b482113c7763819b89c4abcc09">kGPT_OutputCompare3InterruptEnable</a> = GPT_IR_OF3IE_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba21a3c64b4edc196b24be9e12c061fe88">kGPT_InputCapture1InterruptEnable</a> = GPT_IR_IF1IE_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bbaf6dc605de633b7e545065bc952409562">kGPT_InputCapture2InterruptEnable</a> = GPT_IR_IF2IE_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#ggac1d66bcf23acefc1a50049c7e24d77bba2bbf44ee3464387de1fd11a2c28a5132">kGPT_RollOverFlagInterruptEnable</a> = GPT_IR_ROVIE_MASK
<br/>
 }</td></tr>
<tr class="memdesc:gac1d66bcf23acefc1a50049c7e24d77bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of GPT interrupts.  <a href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb">More...</a><br/></td></tr>
<tr class="separator:gac1d66bcf23acefc1a50049c7e24d77bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga21ce3ba40810ea60cf4b59a488e73cc5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a> { <br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5a241fcd87ab22fa9a7212739a39134dfe">kGPT_OutputCompare1Flag</a> = GPT_SR_OF1_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5a75f50bb95d6a232c6bbb0b6c52db60e5">kGPT_OutputCompare2Flag</a> = GPT_SR_OF2_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5abfc4b1e05ade49b83461447d4b4464b1">kGPT_OutputCompare3Flag</a> = GPT_SR_OF3_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5af8d82fdf4783ec7125f8f4cdedaed062">kGPT_InputCapture1Flag</a> = GPT_SR_IF1_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5a64ff7cb952a6cd9c1d85d3dcffc1a50b">kGPT_InputCapture2Flag</a> = GPT_SR_IF2_MASK, 
<br/>
&#160;&#160;<a class="el" href="group__gpt.html#gga21ce3ba40810ea60cf4b59a488e73cc5ae238e6b78d934129211d8e7aafef59a1">kGPT_RollOverFlag</a> = GPT_SR_ROV_MASK
<br/>
 }</td></tr>
<tr class="memdesc:ga21ce3ba40810ea60cf4b59a488e73cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status flag.  <a href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">More...</a><br/></td></tr>
<tr class="separator:ga21ce3ba40810ea60cf4b59a488e73cc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Driver version</h2></td></tr>
<tr class="memitem:ga94106f68143140f2cf4292f02cf4ea21"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga94106f68143140f2cf4292f02cf4ea21"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga94106f68143140f2cf4292f02cf4ea21">FSL_GPT_DRIVER_VERSION</a>&#160;&#160;&#160;(MAKE_VERSION(2, 0, 0))</td></tr>
<tr class="memdesc:ga94106f68143140f2cf4292f02cf4ea21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version 2.0.0. <br/></td></tr>
<tr class="separator:ga94106f68143140f2cf4292f02cf4ea21"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:ga6aeb20e99444bdaf31dd9c39c108e79f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga6aeb20e99444bdaf31dd9c39c108e79f">GPT_Init</a> (GPT_Type *base, const <a class="el" href="group__gpt.html#structgpt__config__t">gpt_config_t</a> *initConfig)</td></tr>
<tr class="memdesc:ga6aeb20e99444bdaf31dd9c39c108e79f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize GPT to reset state and initialize running mode.  <a href="#ga6aeb20e99444bdaf31dd9c39c108e79f">More...</a><br/></td></tr>
<tr class="separator:ga6aeb20e99444bdaf31dd9c39c108e79f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga90be090ee63035f2a2b014adcfd8c60b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga90be090ee63035f2a2b014adcfd8c60b">GPT_Deinit</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga90be090ee63035f2a2b014adcfd8c60b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the module and gates the GPT clock.  <a href="#ga90be090ee63035f2a2b014adcfd8c60b">More...</a><br/></td></tr>
<tr class="separator:ga90be090ee63035f2a2b014adcfd8c60b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f60fd16354f3fcf7bd02f1ccbee80e4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga0f60fd16354f3fcf7bd02f1ccbee80e4">GPT_GetDefaultConfig</a> (<a class="el" href="group__gpt.html#structgpt__config__t">gpt_config_t</a> *config)</td></tr>
<tr class="memdesc:ga0f60fd16354f3fcf7bd02f1ccbee80e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills in the GPT configuration structure with default settings.  <a href="#ga0f60fd16354f3fcf7bd02f1ccbee80e4">More...</a><br/></td></tr>
<tr class="separator:ga0f60fd16354f3fcf7bd02f1ccbee80e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Software Reset</h2></td></tr>
<tr class="memitem:ga9cbb3514413d2eb8783bbce110451d60"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga9cbb3514413d2eb8783bbce110451d60">GPT_SoftwareReset</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga9cbb3514413d2eb8783bbce110451d60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Software reset of GPT module.  <a href="#ga9cbb3514413d2eb8783bbce110451d60">More...</a><br/></td></tr>
<tr class="separator:ga9cbb3514413d2eb8783bbce110451d60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Clock source and frequency control</h2></td></tr>
<tr class="memitem:ga9fd672c0e3c4710940021b526e177b45"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga9fd672c0e3c4710940021b526e177b45">GPT_SetClockSource</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> source)</td></tr>
<tr class="memdesc:ga9fd672c0e3c4710940021b526e177b45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set clock source of GPT.  <a href="#ga9fd672c0e3c4710940021b526e177b45">More...</a><br/></td></tr>
<tr class="separator:ga9fd672c0e3c4710940021b526e177b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ef3c43a4ea5e27291686fcf52a01c53"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga2ef3c43a4ea5e27291686fcf52a01c53">GPT_GetClockSource</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga2ef3c43a4ea5e27291686fcf52a01c53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get clock source of GPT.  <a href="#ga2ef3c43a4ea5e27291686fcf52a01c53">More...</a><br/></td></tr>
<tr class="separator:ga2ef3c43a4ea5e27291686fcf52a01c53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga941a31e66563ec733dc4c69ab430af3f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga941a31e66563ec733dc4c69ab430af3f">GPT_SetClockDivider</a> (GPT_Type *base, uint32_t divider)</td></tr>
<tr class="memdesc:ga941a31e66563ec733dc4c69ab430af3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set pre scaler of GPT.  <a href="#ga941a31e66563ec733dc4c69ab430af3f">More...</a><br/></td></tr>
<tr class="separator:ga941a31e66563ec733dc4c69ab430af3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9e4fc77424a6dccfb8a80f33145aa85f"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga9e4fc77424a6dccfb8a80f33145aa85f">GPT_GetClockDivider</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga9e4fc77424a6dccfb8a80f33145aa85f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get clock divider in GPT module.  <a href="#ga9e4fc77424a6dccfb8a80f33145aa85f">More...</a><br/></td></tr>
<tr class="separator:ga9e4fc77424a6dccfb8a80f33145aa85f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga81c59ed87813049b1b1931547c229688"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga81c59ed87813049b1b1931547c229688">GPT_SetOscClockDivider</a> (GPT_Type *base, uint32_t divider)</td></tr>
<tr class="memdesc:ga81c59ed87813049b1b1931547c229688"><td class="mdescLeft">&#160;</td><td class="mdescRight">OSC 24M pre-scaler before selected by clock source.  <a href="#ga81c59ed87813049b1b1931547c229688">More...</a><br/></td></tr>
<tr class="separator:ga81c59ed87813049b1b1931547c229688"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7f55308a463986caceb5dc78f97f72ea"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga7f55308a463986caceb5dc78f97f72ea">GPT_GetOscClockDivider</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga7f55308a463986caceb5dc78f97f72ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get OSC 24M clock divider in GPT module.  <a href="#ga7f55308a463986caceb5dc78f97f72ea">More...</a><br/></td></tr>
<tr class="separator:ga7f55308a463986caceb5dc78f97f72ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Timer Start and Stop</h2></td></tr>
<tr class="memitem:gafd643e0c52bdf9cb0ea78819cd5d1ca9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gafd643e0c52bdf9cb0ea78819cd5d1ca9">GPT_StartTimer</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:gafd643e0c52bdf9cb0ea78819cd5d1ca9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start GPT timer.  <a href="#gafd643e0c52bdf9cb0ea78819cd5d1ca9">More...</a><br/></td></tr>
<tr class="separator:gafd643e0c52bdf9cb0ea78819cd5d1ca9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7d3298caf68180acb777d0bed3585a95"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga7d3298caf68180acb777d0bed3585a95">GPT_StopTimer</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga7d3298caf68180acb777d0bed3585a95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop GPT timer.  <a href="#ga7d3298caf68180acb777d0bed3585a95">More...</a><br/></td></tr>
<tr class="separator:ga7d3298caf68180acb777d0bed3585a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Read the timer period</h2></td></tr>
<tr class="memitem:ga27f113c6b601234c6493e04ff7699f84"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga27f113c6b601234c6493e04ff7699f84">GPT_GetCurrentTimerCount</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga27f113c6b601234c6493e04ff7699f84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the current GPT counting value.  <a href="#ga27f113c6b601234c6493e04ff7699f84">More...</a><br/></td></tr>
<tr class="separator:ga27f113c6b601234c6493e04ff7699f84"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
GPT Input/Output Signal Control</h2></td></tr>
<tr class="memitem:gaa0d5805eba17bbc982af80077e780bb0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gaa0d5805eba17bbc982af80077e780bb0">GPT_SetInputOperationMode</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> channel, <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a> mode)</td></tr>
<tr class="memdesc:gaa0d5805eba17bbc982af80077e780bb0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPT operation mode of input capture channel.  <a href="#gaa0d5805eba17bbc982af80077e780bb0">More...</a><br/></td></tr>
<tr class="separator:gaa0d5805eba17bbc982af80077e780bb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga075a62145685b5e150392b5bf0162af7"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga075a62145685b5e150392b5bf0162af7">GPT_GetInputOperationMode</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga075a62145685b5e150392b5bf0162af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPT operation mode of input capture channel.  <a href="#ga075a62145685b5e150392b5bf0162af7">More...</a><br/></td></tr>
<tr class="separator:ga075a62145685b5e150392b5bf0162af7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga613c750bc61498e596cc34bf3d7c8705"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga613c750bc61498e596cc34bf3d7c8705">GPT_GetInputCaptureValue</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga613c750bc61498e596cc34bf3d7c8705"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPT input capture value of certain channel.  <a href="#ga613c750bc61498e596cc34bf3d7c8705">More...</a><br/></td></tr>
<tr class="separator:ga613c750bc61498e596cc34bf3d7c8705"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b4b3962e3f263e53d83ccabf2f3b489"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga2b4b3962e3f263e53d83ccabf2f3b489">GPT_SetOutputOperationMode</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> channel, <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a> mode)</td></tr>
<tr class="memdesc:ga2b4b3962e3f263e53d83ccabf2f3b489"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPT operation mode of output compare channel.  <a href="#ga2b4b3962e3f263e53d83ccabf2f3b489">More...</a><br/></td></tr>
<tr class="separator:ga2b4b3962e3f263e53d83ccabf2f3b489"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa4ed0958938a4a9c3c58050e26511026"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gaa4ed0958938a4a9c3c58050e26511026">GPT_GetOutputOperationMode</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> channel)</td></tr>
<tr class="memdesc:gaa4ed0958938a4a9c3c58050e26511026"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPT operation mode of output compare channel.  <a href="#gaa4ed0958938a4a9c3c58050e26511026">More...</a><br/></td></tr>
<tr class="separator:gaa4ed0958938a4a9c3c58050e26511026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4482de4377738cf0ee065f6ad7d3547"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gab4482de4377738cf0ee065f6ad7d3547">GPT_SetOutputCompareValue</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> channel, uint32_t value)</td></tr>
<tr class="memdesc:gab4482de4377738cf0ee065f6ad7d3547"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set GPT output compare value of output compare channel.  <a href="#gab4482de4377738cf0ee065f6ad7d3547">More...</a><br/></td></tr>
<tr class="separator:gab4482de4377738cf0ee065f6ad7d3547"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf152c66a815fd38352742ed4ba01d507"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gaf152c66a815fd38352742ed4ba01d507">GPT_GetOutputCompareValue</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> channel)</td></tr>
<tr class="memdesc:gaf152c66a815fd38352742ed4ba01d507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPT output compare value of output compare channel.  <a href="#gaf152c66a815fd38352742ed4ba01d507">More...</a><br/></td></tr>
<tr class="separator:gaf152c66a815fd38352742ed4ba01d507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga82938d7d324ba16a8462f1b68284b6ba"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga82938d7d324ba16a8462f1b68284b6ba">GPT_ForceOutput</a> (GPT_Type *base, <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> channel)</td></tr>
<tr class="memdesc:ga82938d7d324ba16a8462f1b68284b6ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Force GPT output action on output compare channel, ignoring comparator.  <a href="#ga82938d7d324ba16a8462f1b68284b6ba">More...</a><br/></td></tr>
<tr class="separator:ga82938d7d324ba16a8462f1b68284b6ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
GPT Interrupt and Status Interface</h2></td></tr>
<tr class="memitem:gaf441b1f196d31f08319db26487bbe496"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gaf441b1f196d31f08319db26487bbe496">GPT_EnableInterrupts</a> (GPT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gaf441b1f196d31f08319db26487bbe496"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the selected GPT interrupts.  <a href="#gaf441b1f196d31f08319db26487bbe496">More...</a><br/></td></tr>
<tr class="separator:gaf441b1f196d31f08319db26487bbe496"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa4fd7eccba69c67e4facf6e9a5e9c62e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gaa4fd7eccba69c67e4facf6e9a5e9c62e">GPT_DisableInterrupts</a> (GPT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gaa4fd7eccba69c67e4facf6e9a5e9c62e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the selected GPT interrupts.  <a href="#gaa4fd7eccba69c67e4facf6e9a5e9c62e">More...</a><br/></td></tr>
<tr class="separator:gaa4fd7eccba69c67e4facf6e9a5e9c62e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga471739441f35a3f65707e40e8d5f0649"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga471739441f35a3f65707e40e8d5f0649">GPT_GetEnabledInterrupts</a> (GPT_Type *base)</td></tr>
<tr class="memdesc:ga471739441f35a3f65707e40e8d5f0649"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the enabled GPT interrupts.  <a href="#ga471739441f35a3f65707e40e8d5f0649">More...</a><br/></td></tr>
<tr class="separator:ga471739441f35a3f65707e40e8d5f0649"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status Interface</h2></td></tr>
<tr class="memitem:ga9e19600458e9121125a370720b4f6f6d"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#ga9e19600458e9121125a370720b4f6f6d">GPT_GetStatusFlags</a> (GPT_Type *base, <a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a> flags)</td></tr>
<tr class="memdesc:ga9e19600458e9121125a370720b4f6f6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPT status flags.  <a href="#ga9e19600458e9121125a370720b4f6f6d">More...</a><br/></td></tr>
<tr class="separator:ga9e19600458e9121125a370720b4f6f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad0cdd59a23d43441a5a160bf01351754"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#gad0cdd59a23d43441a5a160bf01351754">GPT_ClearStatusFlags</a> (GPT_Type *base, <a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a> flags)</td></tr>
<tr class="memdesc:gad0cdd59a23d43441a5a160bf01351754"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the GPT status flags.  <a href="#gad0cdd59a23d43441a5a160bf01351754">More...</a><br/></td></tr>
<tr class="separator:gad0cdd59a23d43441a5a160bf01351754"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structgpt__config__t" id="structgpt__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct gpt_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a25f268bc5fecec8069a572c4c3b58fc7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a25f268bc5fecec8069a572c4c3b58fc7">clockSource</a></td></tr>
<tr class="memdesc:a25f268bc5fecec8069a572c4c3b58fc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">clock source for GPT module.  <a href="#a25f268bc5fecec8069a572c4c3b58fc7">More...</a><br/></td></tr>
<tr class="separator:a25f268bc5fecec8069a572c4c3b58fc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2407ae05cf065f7670679b3e1c2c2b50"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a2407ae05cf065f7670679b3e1c2c2b50">divider</a></td></tr>
<tr class="memdesc:a2407ae05cf065f7670679b3e1c2c2b50"><td class="mdescLeft">&#160;</td><td class="mdescRight">clock divider (prescaler+1) from clock source to counter.  <a href="#a2407ae05cf065f7670679b3e1c2c2b50">More...</a><br/></td></tr>
<tr class="separator:a2407ae05cf065f7670679b3e1c2c2b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae502b9cc970005480f6ff1658972d53"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#aae502b9cc970005480f6ff1658972d53">enableFreeRun</a></td></tr>
<tr class="memdesc:aae502b9cc970005480f6ff1658972d53"><td class="mdescLeft">&#160;</td><td class="mdescRight">true: FreeRun mode, false: Restart mode.  <a href="#aae502b9cc970005480f6ff1658972d53">More...</a><br/></td></tr>
<tr class="separator:aae502b9cc970005480f6ff1658972d53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ddfd1bd9f2f22b721a2bff60673fac5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a4ddfd1bd9f2f22b721a2bff60673fac5">enableRunInWait</a></td></tr>
<tr class="memdesc:a4ddfd1bd9f2f22b721a2bff60673fac5"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPT enabled in wait mode.  <a href="#a4ddfd1bd9f2f22b721a2bff60673fac5">More...</a><br/></td></tr>
<tr class="separator:a4ddfd1bd9f2f22b721a2bff60673fac5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10b8bb88a27214987d3e877a6c0371db"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a10b8bb88a27214987d3e877a6c0371db">enableRunInStop</a></td></tr>
<tr class="memdesc:a10b8bb88a27214987d3e877a6c0371db"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPT enabled in stop mode.  <a href="#a10b8bb88a27214987d3e877a6c0371db">More...</a><br/></td></tr>
<tr class="separator:a10b8bb88a27214987d3e877a6c0371db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfe8142bf85397f51921301055b1bb8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a0cfe8142bf85397f51921301055b1bb8">enableRunInDoze</a></td></tr>
<tr class="memdesc:a0cfe8142bf85397f51921301055b1bb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPT enabled in doze mode.  <a href="#a0cfe8142bf85397f51921301055b1bb8">More...</a><br/></td></tr>
<tr class="separator:a0cfe8142bf85397f51921301055b1bb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c3a30242ed5d7d2675be2d300eed4d1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a5c3a30242ed5d7d2675be2d300eed4d1">enableRunInDbg</a></td></tr>
<tr class="memdesc:a5c3a30242ed5d7d2675be2d300eed4d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">GPT enabled in debug mode.  <a href="#a5c3a30242ed5d7d2675be2d300eed4d1">More...</a><br/></td></tr>
<tr class="separator:a5c3a30242ed5d7d2675be2d300eed4d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c9bf1a239e33da721076aabd0c2b079"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__gpt.html#a0c9bf1a239e33da721076aabd0c2b079">enableMode</a></td></tr>
<tr class="memdesc:a0c9bf1a239e33da721076aabd0c2b079"><td class="mdescLeft">&#160;</td><td class="mdescRight"><pre class="fragment"> true:  counter reset to 0 when enabled;
</pre><p> false: counter retain its value when enabled.  <a href="#a0c9bf1a239e33da721076aabd0c2b079">More...</a><br/></td></tr>
<tr class="separator:a0c9bf1a239e33da721076aabd0c2b079"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h4 class="groupheader">Field Documentation</h4>
<a class="anchor" id="a25f268bc5fecec8069a572c4c3b58fc7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> gpt_config_t::clockSource</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a2407ae05cf065f7670679b3e1c2c2b50"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t gpt_config_t::divider</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aae502b9cc970005480f6ff1658972d53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableFreeRun</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a4ddfd1bd9f2f22b721a2bff60673fac5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableRunInWait</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a10b8bb88a27214987d3e877a6c0371db"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableRunInStop</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0cfe8142bf85397f51921301055b1bb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableRunInDoze</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5c3a30242ed5d7d2675be2d300eed4d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableRunInDbg</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0c9bf1a239e33da721076aabd0c2b079"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gpt_config_t::enableMode</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gad0ed5e094d0bec112a065a0c6b057e56"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section note"><dt>Note</dt><dd>Actual number of clock sources is SoC dependent </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56a398f5e7765f47a492d625a7cb26bf499"></a>kGPT_ClockSource_Off</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source Off. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56a728cff5c785288f3884d4c2cbdf0b466"></a>kGPT_ClockSource_Periph</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source from Peripheral Clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56a1a2644f7461698f6515c3da0a7c1cbab"></a>kGPT_ClockSource_HighFreq</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source from High Frequency Reference Clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56ab76385e941d5ce14116ac5a55aaf5815"></a>kGPT_ClockSource_Ext</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source from external pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56acb33521779fb2addb21bb22f850c837d"></a>kGPT_ClockSource_LowFreq</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source from Low Frequency Reference Clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad0ed5e094d0bec112a065a0c6b057e56a9df479d2e5f5d539b053425ab986ad20"></a>kGPT_ClockSource_Osc</em>&nbsp;</td><td class="fielddoc">
<p>GPT Clock Source from Crystal oscillator. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gad36eff6489251bee506c6806c64a86d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggad36eff6489251bee506c6806c64a86d0a083b8ef10ac54db99013fdadaf40ea12"></a>kGPT_InputCapture_Channel1</em>&nbsp;</td><td class="fielddoc">
<p>GPT Input Capture Channel1. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad36eff6489251bee506c6806c64a86d0a8ef1e1b7eee2eefaef9d4f9776bafe4a"></a>kGPT_InputCapture_Channel2</em>&nbsp;</td><td class="fielddoc">
<p>GPT Input Capture Channel2. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga22997c2d644f6249b9c704afc230eedf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga22997c2d644f6249b9c704afc230eedfaf7ecc55be6dd63a6be40d96dc9f8d24e"></a>kGPT_InputOperation_Disabled</em>&nbsp;</td><td class="fielddoc">
<p>Don't capture. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga22997c2d644f6249b9c704afc230eedfa17ede75d0bb581f4fed42f678e1b81d1"></a>kGPT_InputOperation_RiseEdge</em>&nbsp;</td><td class="fielddoc">
<p>Capture on rising edge of input pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga22997c2d644f6249b9c704afc230eedfaa0dcd1649563ba92f8f1e8230284edfa"></a>kGPT_InputOperation_FallEdge</em>&nbsp;</td><td class="fielddoc">
<p>Capture on falling edge of input pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga22997c2d644f6249b9c704afc230eedfa5ad14d26a16fa7d607a446440c88b735"></a>kGPT_InputOperation_BothEdge</em>&nbsp;</td><td class="fielddoc">
<p>Capture on both edges of input pin. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gae6c9b96e71d6a276ce8437708acddfda"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggae6c9b96e71d6a276ce8437708acddfdaa68b52504e269393df3fc389c9b78c2d8"></a>kGPT_OutputCompare_Channel1</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel1. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggae6c9b96e71d6a276ce8437708acddfdaa1be13c4fe09bed476ee7656b59f25d37"></a>kGPT_OutputCompare_Channel2</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel2. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggae6c9b96e71d6a276ce8437708acddfdaa55da6b048e4471add16448bd43a6829c"></a>kGPT_OutputCompare_Channel3</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel3. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga54e26b65b23236492c81c572ba36ab20"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga54e26b65b23236492c81c572ba36ab20adedc5e02092eeab85600f919bf2dec82"></a>kGPT_OutputOperation_Disconnected</em>&nbsp;</td><td class="fielddoc">
<p>Don't change output pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54e26b65b23236492c81c572ba36ab20acd8732f3636757f56665c6549a27c887"></a>kGPT_OutputOperation_Toggle</em>&nbsp;</td><td class="fielddoc">
<p>Toggle output pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54e26b65b23236492c81c572ba36ab20ab74f183a3e8eb815a40a39eb033dc532"></a>kGPT_OutputOperation_Clear</em>&nbsp;</td><td class="fielddoc">
<p>Set output pin low. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54e26b65b23236492c81c572ba36ab20aae9329b2a4b5ea63e66ca10239efe669"></a>kGPT_OutputOperation_Set</em>&nbsp;</td><td class="fielddoc">
<p>Set output pin high. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga54e26b65b23236492c81c572ba36ab20a5bd080fd627f26d074da1b3dab7535f2"></a>kGPT_OutputOperation_Activelow</em>&nbsp;</td><td class="fielddoc">
<p>Generate a active low pulse on output pin. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gac1d66bcf23acefc1a50049c7e24d77bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb">gpt_interrupt_enable_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bba61170acbca36f4757633d1d12d3246ba"></a>kGPT_OutputCompare1InterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel1 interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bba4ebb7fc65d182cd6643fe237d60d91ed"></a>kGPT_OutputCompare2InterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel2 interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bba5141f4b482113c7763819b89c4abcc09"></a>kGPT_OutputCompare3InterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare Channel3 interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bba21a3c64b4edc196b24be9e12c061fe88"></a>kGPT_InputCapture1InterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Input Capture Channel1 interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bbaf6dc605de633b7e545065bc952409562"></a>kGPT_InputCapture2InterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Input Capture Channel1 interrupt enable. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac1d66bcf23acefc1a50049c7e24d77bba2bbf44ee3464387de1fd11a2c28a5132"></a>kGPT_RollOverFlagInterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Counter rolled over interrupt enable. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga21ce3ba40810ea60cf4b59a488e73cc5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5a241fcd87ab22fa9a7212739a39134dfe"></a>kGPT_OutputCompare1Flag</em>&nbsp;</td><td class="fielddoc">
<p>Output compare channel 1 event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5a75f50bb95d6a232c6bbb0b6c52db60e5"></a>kGPT_OutputCompare2Flag</em>&nbsp;</td><td class="fielddoc">
<p>Output compare channel 2 event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5abfc4b1e05ade49b83461447d4b4464b1"></a>kGPT_OutputCompare3Flag</em>&nbsp;</td><td class="fielddoc">
<p>Output compare channel 3 event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5af8d82fdf4783ec7125f8f4cdedaed062"></a>kGPT_InputCapture1Flag</em>&nbsp;</td><td class="fielddoc">
<p>Input Capture channel 1 event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5a64ff7cb952a6cd9c1d85d3dcffc1a50b"></a>kGPT_InputCapture2Flag</em>&nbsp;</td><td class="fielddoc">
<p>Input Capture channel 2 event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="gga21ce3ba40810ea60cf4b59a488e73cc5ae238e6b78d934129211d8e7aafef59a1"></a>kGPT_RollOverFlag</em>&nbsp;</td><td class="fielddoc">
<p>Counter reaches maximum value and rolled over to 0 event. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ga6aeb20e99444bdaf31dd9c39c108e79f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPT_Init </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__gpt.html#structgpt__config__t">gpt_config_t</a> *&#160;</td>
          <td class="paramname"><em>initConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">initConfig</td><td>GPT mode setting configuration. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga90be090ee63035f2a2b014adcfd8c60b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPT_Deinit </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0f60fd16354f3fcf7bd02f1ccbee80e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPT_GetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gpt.html#structgpt__config__t">gpt_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The default values are: </p>
<div class="fragment"><div class="line">*    config-&gt;clockSource = <a class="code" href="group__gpt.html#ggad0ed5e094d0bec112a065a0c6b057e56a728cff5c785288f3884d4c2cbdf0b466">kGPT_ClockSource_Periph</a>;</div>
<div class="line">*    config-&gt;divider = 1U;</div>
<div class="line">*    config-&gt;enableRunInStop = <span class="keyword">true</span>;</div>
<div class="line">*    config-&gt;enableRunInWait = <span class="keyword">true</span>;</div>
<div class="line">*    config-&gt;enableRunInDoze = <span class="keyword">false</span>;</div>
<div class="line">*    config-&gt;enableRunInDbg = <span class="keyword">false</span>;</div>
<div class="line">*    config-&gt;enableFreeRun = <span class="keyword">true</span>;</div>
<div class="line">*    config-&gt;enableMode  = <span class="keyword">true</span>;</div>
<div class="line">* </div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pointer to the user configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9cbb3514413d2eb8783bbce110451d60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SoftwareReset </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9fd672c0e3c4710940021b526e177b45"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetClockSource </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a>&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">source</td><td>Clock source (see <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2ef3c43a4ea5e27291686fcf52a01c53"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> GPT_GetClockSource </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>clock source (see <a class="el" href="group__gpt.html#gad0ed5e094d0bec112a065a0c6b057e56">gpt_clock_source_t</a> typedef enumeration). </dd></dl>

</div>
</div>
<a class="anchor" id="ga941a31e66563ec733dc4c69ab430af3f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetClockDivider </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>divider</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">divider</td><td>Divider of GPT (1-4096). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga9e4fc77424a6dccfb8a80f33145aa85f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetClockDivider </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>clock divider in GPT module (1-4096). </dd></dl>

</div>
</div>
<a class="anchor" id="ga81c59ed87813049b1b1931547c229688"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetOscClockDivider </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>divider</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">divider</td><td>OSC Divider(1-16). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7f55308a463986caceb5dc78f97f72ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetOscClockDivider </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>OSC clock divider in GPT module (1-16). </dd></dl>

</div>
</div>
<a class="anchor" id="gafd643e0c52bdf9cb0ea78819cd5d1ca9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_StartTimer </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7d3298caf68180acb777d0bed3585a95"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_StopTimer </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga27f113c6b601234c6493e04ff7699f84"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetCurrentTimerCount </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current GPT counter value. </dd></dl>

</div>
</div>
<a class="anchor" id="gaa0d5805eba17bbc982af80077e780bb0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetInputOperationMode </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT capture channel (see <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> typedef enumeration). </td></tr>
    <tr><td class="paramname">mode</td><td>GPT input capture operation mode (see <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga075a62145685b5e150392b5bf0162af7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a> GPT_GetInputOperationMode </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT capture channel (see <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPT input capture operation mode (see <a class="el" href="group__gpt.html#ga22997c2d644f6249b9c704afc230eedf">gpt_input_operation_mode_t</a> typedef enumeration). </dd></dl>

</div>
</div>
<a class="anchor" id="ga613c750bc61498e596cc34bf3d7c8705"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetInputCaptureValue </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT capture channel (see <a class="el" href="group__gpt.html#gad36eff6489251bee506c6806c64a86d0">gpt_input_capture_channel_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPT input capture value. </dd></dl>

</div>
</div>
<a class="anchor" id="ga2b4b3962e3f263e53d83ccabf2f3b489"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetOutputOperationMode </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT output compare channel (see <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> typedef enumeration). </td></tr>
    <tr><td class="paramname">mode</td><td>GPT output operation mode (see <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa4ed0958938a4a9c3c58050e26511026"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a> GPT_GetOutputOperationMode </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT output compare channel (see <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPT output operation mode (see <a class="el" href="group__gpt.html#ga54e26b65b23236492c81c572ba36ab20">gpt_output_operation_mode_t</a> typedef enumeration). </dd></dl>

</div>
</div>
<a class="anchor" id="gab4482de4377738cf0ee065f6ad7d3547"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_SetOutputCompareValue </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT output compare channel (see <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> typedef enumeration). </td></tr>
    <tr><td class="paramname">value</td><td>GPT output compare value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf152c66a815fd38352742ed4ba01d507"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetOutputCompareValue </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT output compare channel (see <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPT output compare value. </dd></dl>

</div>
</div>
<a class="anchor" id="ga82938d7d324ba16a8462f1b68284b6ba"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_ForceOutput </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a>&#160;</td>
          <td class="paramname"><em>channel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">channel</td><td>GPT output compare channel (see <a class="el" href="group__gpt.html#gae6c9b96e71d6a276ce8437708acddfda">gpt_output_compare_channel_t</a> typedef enumeration). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf441b1f196d31f08319db26487bbe496"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to enable. This is a logical OR of members of the enumeration <a class="el" href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb" title="List of GPT interrupts. ">gpt_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa4fd7eccba69c67e4facf6e9a5e9c62e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to disable. This is a logical OR of members of the enumeration <a class="el" href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb" title="List of GPT interrupts. ">gpt_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga471739441f35a3f65707e40e8d5f0649"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetEnabledInterrupts </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The enabled interrupts. This is the logical OR of members of the enumeration <a class="el" href="group__gpt.html#gac1d66bcf23acefc1a50049c7e24d77bb" title="List of GPT interrupts. ">gpt_interrupt_enable_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga9e19600458e9121125a370720b4f6f6d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t GPT_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a>&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">flags</td><td>GPT status flag mask (see <a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a> for bit definition). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>GPT status, each bit represents one status flag. </dd></dl>

</div>
</div>
<a class="anchor" id="gad0cdd59a23d43441a5a160bf01351754"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void GPT_ClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">GPT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a>&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>GPT peripheral base address. </td></tr>
    <tr><td class="paramname">flags</td><td>GPT status flag mask (see <a class="el" href="group__gpt.html#ga21ce3ba40810ea60cf4b59a488e73cc5">gpt_status_flag_t</a> for bit definition). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
